import common from "../common";
import constants from "../constants";

const sysAccountSetApi = {
    findSysAccountSets: (data, success, error) => {
        return common.requestData(constants.API_FindSysAccountSets, data, success, error);
    },
    getSysAccountSetBySid: (data, success, error) => {
        return common.requestData(constants.API_GetSysAccountSetBySid, data, success, error);
    },
    saveSysAccountSet: (data, success, error) => {
        return common.requestData(constants.API_SaveSysAccountSet, data, success, error);
    },
    delSysAccountSets: (data, success, error) => {
        return common.requestData(constants.API_DeleteSysAccountSets, data, success, error);
    },
    testConnection: (data, success, error) => {
        return common.requestData(constants.API_TestConnection, data, success, error);
    },
    createDataBase: (data, success, error) => {
        return common.requestData(constants.API_CreateDataBase, data, success, error);
    },
    findSysAccountSetResources4Setting: (data, success, error) => {
        return common.requestData(constants.API_FindSysAccountSetResources4Setting, data, success, error);
    },
    saveSysAccountSetResources: (data, success, error) => {
        return common.requestData(constants.API_SaveSysAccountSetResources, data, success, error);
    },
    resetSysAccountSetAdminUser: (data, success, error) => {
        return common.requestData(constants.API_ResetSysAccountSetAdminUser, data, success, error);
    },
    findSyncSrcList: (data, success, error) => {
        return common.requestData(constants.API_FindSyncSrcList, data, success, error);
    },
    saveSyncDataList: (data, success, error) => {
        return common.requestData(constants.API_SaveSyncDataList, data, success, error);
    },
    isMaster: (data, success, error) => {
        return common.requestData(constants.API_SaveSyncDataList, data, success, error);
    },
};

export default sysAccountSetApi;
